package com.banmao.mall.mapper;

import com.banmao.mall.model.pojo.Topic;
import com.banmao.mall.model.vo.admin.promote.topic.TopicCreateVO;
import com.banmao.mall.model.vo.admin.promote.topic.TopicItemsBean;
import com.banmao.mall.model.vo.client.index.TopicVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TopicMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Topic record);

    int insertSelective(Topic record);

    Topic selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Topic record);

    int updateByPrimaryKeyWithBLOBs(Topic record);

    int updateByPrimaryKey(Topic record);

    List<TopicVO> selectFourTopic();

    List<TopicItemsBean> selectTopicList(Integer page, Integer limit, String sort, String order, String title, String subtitle);

    int getTopicListTotal(String title, String subtitle);

    //ps
    List<Topic> selectNoDeleted(Topic topic);

    List<Topic> selectSelective(@Param("noId") Integer noId, @Param("rows") Integer rows);
}